package com.moive.news.tqnewsapplication.ui.activity;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.widget.ImageView;
import android.widget.TextView;

import com.moive.news.tqnewsapplication.R;
import com.moive.news.tqnewsapplication.base.BaseActivity;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * Created by Administrator on 2017/12/12.
 */

public class HelpActivity extends BaseActivity {
    @BindView(R.id.help_back)
    ImageView helpBack;
    @BindView(R.id.help_text)
    TextView helpText;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_help);
        ButterKnife.bind(this);
        init();
    }

    private void init() {
        helpBack.setOnClickListener(v -> finish());
        String S=helpText.getText().toString();
        String s1=S.replaceAll("c","\n");
        helpText.setText(s1);
    }
}
